package com.hyg.module_testing.ui.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.Manifest;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.hyg.lib_base.lisener.PermissionListener;
import com.hyg.lib_common.Base.BaseActivity;
import com.hyg.module_testing.R;

public class Test2Activity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test2);
    }


    public void onTestClicked(View view) {
        getPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE}, new PermissionListener() {
            @Override
            public void onResult(int[] results) {
                Log.i("lgb", "onResult11111111: "+results[0]);
            }
        });
    }


}